package com.blb.logistics_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 物流实体
 */
@Data
@TableName("logistics")
public class Logistics {

  @TableId(type = IdType.AUTO)
  private long logisticsId;
  private long logisticsGoodsId;
  private java.sql.Timestamp logisticsStart;
  private java.sql.Timestamp logisticsEnd;
  private long logisticsNumber;
  private long logisticsStartAddressId;
  private long logisticsEndAddressId;
  private long deleted;

  //商品
  @TableField(exist = false)
  private Goods goods;

  //发货地址
  @TableField(exist = false)
  private Address startAddress;

  //收货地址
  @TableField(exist = false)
  private Address endAddress;
}
